package com.njust.utils;

import com.github.pagehelper.PageInfo;
import com.njust.vo.PageVO.PageResultVo;

public class PageUtils {
    public static void pageUtil(PageInfo info, PageResultVo resultVO){
        resultVO.setTotalNum(info.getTotal());
        resultVO.setPageNum(info.getPageNum());
        resultVO.setPages(info.getPages());
        resultVO.setPageSize(info.getPageSize());
        resultVO.setSize(info.getSize());
    }
}
